Optimal. Leaf size=67 \[ \frac {b \sin (2 a) \text {Ci}\left (2 b x^n\right )}{n}+\frac {b \cos (2 a) \text {Si}\left (2 b x^n\right )}{n}+\frac {x^{-n} \cos \left (2 \left (a+b x^n\right )\right )}{2 n}-\frac {x^{-n}}{2 n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3425, 3380, 3297, 3303, 3299, 3302} \[ \frac {b \sin (2 a) \text {CosIntegral}\left (2 b x^n\right )}{n}+\frac {b \cos (2 a) \text {Si}\left (2 b x^n\right )}{n}+\frac {x^{-n} \cos \left (2 \left (a+b x^n\right )\right )}{2 n}-\frac {x^{-n}}{2 n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3297
Rule 3299
Rule 3302
Rule 3303
Rule 3380
Rule 3425
Rubi steps
\begin {align*} \int x^{-1-n} \sin ^2\left (a+b x^n\right ) \, dx &=\int \left (\frac {x^{-1-n}}{2}-\frac {1}{2} x^{-1-n} \cos \left (2 a+2 b x^n\right )\right ) \, dx\\ &=-\frac {x^{-n}}{2 n}-\frac {1}{2} \int x^{-1-n} \cos \left (2 a+2 b x^n\right ) \, dx\\ &=-\frac {x^{-n}}{2 n}-\frac {\operatorname {Subst}\left (\int \frac {\cos (2 a+2 b x)}{x^2} \, dx,x,x^n\right )}{2 n}\\ &=-\frac {x^{-n}}{2 n}+\frac {x^{-n} \cos \left (2 \left (a+b x^n\right )\right )}{2 n}+\frac {b \operatorname {Subst}\left (\int \frac {\sin (2 a+2 b x)}{x} \, dx,x,x^n\right )}{n}\\ &=-\frac {x^{-n}}{2 n}+\frac {x^{-n} \cos \left (2 \left (a+b x^n\right )\right )}{2 n}+\frac {(b \cos (2 a)) \operatorname {Subst}\left (\int \frac {\sin (2 b x)}{x} \, dx,x,x^n\right )}{n}+\frac {(b \sin (2 a)) \operatorname {Subst}\left (\int \frac {\cos (2 b x)}{x} \, dx,x,x^n\right )}{n}\\ &=-\frac {x^{-n}}{2 n}+\frac {x^{-n} \cos \left (2 \left (a+b x^n\right )\right )}{2 n}+\frac {b \text {Ci}\left (2 b x^n\right ) \sin (2 a)}{n}+\frac {b \cos (2 a) \text {Si}\left (2 b x^n\right )}{n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.14, size = 58, normalized size = 0.87 \[ \frac {x^{-n} \left (2 b \sin (2 a) x^n \text {Ci}\left (2 b x^n\right )+2 b \cos (2 a) x^n \text {Si}\left (2 b x^n\right )+\cos \left (2 \left (a+b x^n\right )\right )-1\right )}{2 n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.59, size = 73, normalized size = 1.09 \[ \frac {b x^{n} \operatorname {Ci}\left (2 \, b x^{n}\right ) \sin \left (2 \, a\right ) + b x^{n} \operatorname {Ci}\left (-2 \, b x^{n}\right ) \sin \left (2 \, a\right ) + 2 \, b x^{n} \cos \left (2 \, a\right ) \operatorname {Si}\left (2 \, b x^{n}\right ) + 2 \, \cos \left (b x^{n} + a\right )^{2} - 2}{2 \, n x^{n}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{-n - 1} \sin \left (b x^{n} + a\right )^{2}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 66, normalized size = 0.99 \[ -\frac {x^{-n}}{2 n}-\frac {b \left (-\frac {\cos \left (2 a +2 b \,x^{n}\right ) x^{-n}}{2 b}-\Si \left (2 b \,x^{n}\right ) \cos \left (2 a \right )-\Ci \left (2 b \,x^{n}\right ) \sin \left (2 a \right )\right )}{n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ -\frac {n x^{n} \int \frac {\cos \left (2 \, b x^{n} + 2 \, a\right )}{x x^{n}}\,{d x} + 1}{2 \, n x^{n}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\sin \left (a+b\,x^n\right )}^2}{x^{n+1}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________